import styled from "styled-components";
import logo from "../../static/logo.png";
export const HeaderWrap = styled.div`
  height: 56px;
  border-bottom: 1px solid #efefef;
  position: relative;
  background:#ffffff
`;
export const Logo = styled.div`
  height: 58px;
  border-bottom: 1px solid #efefef;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100px;
  height: 56px;
  background: url(${logo});
  background-size: contain;
`;
export const Nav = styled.div`
  width: 980px;
  cursor: pointer;
  height: 100%;
  margin: 0 auto;
  padding-right: 60px;
  box-sizing: border-box;
`;
export const NavItem = styled.div`
  line-height: 56px;
  padding: 0 15px;
  &.right {
    color: #969696;
  }
  &.active {
    color: #ea6f5a;
  }
`;
export const SearchWrap = styled.div`
  position: relative;
  float: left;
  .iconfont {
    position: absolute;
    right: 5px;
    top: 13px;
    width: 30px;
    height: 30px !important;
    line-height: 30px;
    text-align: center;
    border-radius: 15px;
    &.focused {
      background: #777777;
      color: #ffffff;
    }
  }
`;
export const NavSearch = styled.input.attrs({
  placeholder: "搜索",
})`
  padding: 0 40px 0 20px;
  width: 160px;
  height: 38px;
  font-size: 14px;
  border: 1px solid #eee;
  border-radius: 40px;
  background: #eee;
  margin-top: 8px;
  color: #777777;
  &.slide-enter {
    width: 160px;
    transition: all 0.2s ease-out;
  }
  &.slide-enter-active,
  &.slide-enter-done {
    width: 200px;
  }
  &.slide-exit {
    width: 200px;
    transition: all 0.2s ease-out;
  }
  &.slide-exit-active,
  &.slide-exit-done {
    width: 160px;
  }
`;
export const Additioon = styled.div`
  position: absolute;
  top: 0;
  right: 0;
  height: 56px;
`;
export const Button = styled.div`
  float: right;
  width: 80px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  margin: 9px 5px 0 15px;
  border: 1px solid rgba(236, 97, 73, 0.7);
  border-radius: 20px;
  font-size: 15px;
  color: #ea6f5a;
  background-color: transparent;
  cursor: pointer;
  &:hover {
    opacity: 0.7;
  }
  &.writh {
    background-color: #ea6f5a;
    color: #ffffff;
  }
`;

export const SearchBox = styled.div`
  width: 240px;
  padding: 0 10px 10px;
  border-radius: 5px;
  font-size: 14px;
  color: #ea6f5a;
  background-color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 60px;
  left: 0;
`;

export const SbTitle = styled.div`
  line-height: 40px;
  height: 40px;
  color: #333333;
  span {
    float: left;
  }
  .right {
    float: right;
  }
`;
export const SbItemBox = styled.div``;
export const SbItem = styled.a`
  display: block;
  padding: 3px 7px;
  border: 1px solid #dedede;
  border-radius: 3px;
  float: left;
  margin: 0 10px 10px 0;
  font-size: 12px;
  color: #999999;
  &:hover {
    opacity: 0.7;
  }
`;
